package com.rental.houses.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rental.model.entity.house.SubletHourse;
import com.rental.model.form.house.SubletHouseAddForm;
import com.rental.model.form.house.SubletHousePageForm;
import com.rental.model.vo.house.SubletHouseInfoVo;
import com.rental.model.vo.house.SubletHousePageVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-01-16
 */
public interface ISubletHourseService extends IService<SubletHourse> {

    Page<SubletHousePageVo> getSubletHousePage(Integer page, Integer size, SubletHousePageForm subletHousePageForm);

    SubletHouseInfoVo getSubletHouseInfoById(Long id, Long uid);

    String getContactWechat(Long id);

    String getContactPhone(Long id);

    Boolean downHouse(Long id, Long uid);

    Boolean addSubletHouse(SubletHouseAddForm subletHouseAddForm);

    Boolean deleteSubletHouse(Long id, Long uid);

    List<SubletHourse> getSubletHouseListByUid(Long uid);
    Boolean collectHouse(Long id, Long uid);

    Boolean cancelCollectHouse(Long id, Long uid);

    SubletHousePageVo getSubletHousePageVo(Long id, Integer state);

    Long getCount();

    Integer accusation(Long id, Long userId);
}
